/*
 * 计算球的反弹高度（4分）
 */

#include <stdio.h>

int main() {
	setbuf(stdout, NULL);

	int n;
	float max_height = 100.0, route = 0;

	printf("Input:\n");
	scanf("%d", &n);

	for (int i = 0; i < n; ++i) {
		// 计算第i阶段的总路程
		if (i == n - 1) {
			route += (float) (max_height);
		} else {
			route += (float) (max_height + max_height / 2.0);
		}

		// 修整当前阶段的实时最高高度
		max_height /= 2;
	}

	printf("%d times:\n", n);
	printf("%.3f\n", route);
	printf("%.3f\n", max_height);

	return 0;
}